home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000474_news@columbia.edu _Wed Apr 24 18:57:58 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id SAA03429 for <kermit.misc@watsun>; Wed, 24 Apr 1996 18:57:58 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id SAA22918 for kermit.misc@watsun; Wed, 24 Apr 1996 18:57:55 -0400 (EDT)
  4. Path: news.columbia.edu!news.new-york.net!news.iag.net!news.math.psu.edu!news.cac.psu.edu!news.cse.psu.edu!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!plug.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!in2.uu.net!dprmp3.dataprompt.com!dprmp3.dataprompt.com!not-for-mail
  5. From: dpss@dprmp3.dataprompt.com (Shujaat Siddiqui)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: C-Kermit Script is not quitting after it sends the Page
  8. Date: 24 Apr 1996 16:22:44 -0400
  9. Organization: Data-Prompt, Inc.
  10. Lines: 64
  11. Message-ID: <4lm2ik$4kn@dprmp3.dataprompt.com>
  12. NNTP-Posting-Host: dprmp3.dataprompt.com
  13.  
  14.  
  15. Hello,
  16.  
  17.     I am working on simple Kermit script to page the Sysyem Administrators
  18. if any Production Machine goes down.
  19.  
  20.     We have Linux sitting on a P.C. which is a firewall connection to
  21. the internet.  I am using that machine also to check the Main Production
  22. machines out.
  23.  
  24.     Since we have only numaric pagers provided by our company, I am
  25. using the following Kermit Script to send the pager out.
  26.  
  27.  
  28. ****************** BEGINNIG OF SCRIPT ******************
  29.  
  30. set line /dev/modem    ; Set for second serial port on a SPARCstation die
  31. set modem hayes        ; Set for Hayes modem
  32. set local-echo on    ; Echo local (doesn't seem to work)
  33. set duplex full        ; Echo local (doesn't seem to work)
  34. set parity even        ; Should set us to 7e1
  35. set speed 19200        ; 1200 is max speed AirTouch seems to accept
  36. ;set output pacing 1    ; Seems needed to work with AirTouch
  37.  
  38. define \%a 9,5109443
  39. define \%b 8765432
  40.  
  41. output AT\13
  42. input 3 OK
  43. if fail stop 1 Can't get your modem's attention
  44. output ATDT\%a,,,,,\%b##;\13
  45. input 3 OK
  46. if fail stop 1 Can't place call     
  47. output exit\13
  48. pause 5
  49. hangup
  50.  
  51. stop 0 Script succeeded
  52.  
  53. *************** END OF SCRIPT *************************
  54.  
  55. The problem I am having, is that above script does the job, which pages sends
  56. the message correctly, but it never hangup and quit the Kermit session.
  57.  
  58. Could someone please give me hint to achieve it.
  59.  
  60. Thanks in Advance.
  61.  
  62. Also if someone could give me some hints how to get variables outside of the
  63. script instead of hard coding it in my Kermit script, so that I would be able 
  64. page more than one person at time.
  65.  
  66. I am using C-kermit, which is Linux.
  67.  
  68.  
  69. **
  70. ********************************************************************
  71. *  Shujaat H. Siddiqui  Phone: (301)622-0900 Ext: 306              *
  72. *  ELM Adress: dpss@dprmp3.dataprompt.com                          *
  73. ********************************************************************
  74. *                                                                  *
  75. * A foolish consistency is the hobgoblin of little minds.  Emerson *
  76. *                                                                  *
  77. ********************************************************************
  78.